package org.brisling.medical.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.brisling.base.domain.impl.BaseDomain;
import org.brisling.base.domain.impl.BaseDomainExcludeId;
import org.brisling.base.domain.inf.BaseDomainInf;
import org.brisling.common.ConstSysParam;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 
 * <p>
 * Title: MedicalOutpatient
 * </p>
 * <p>
 * Description: 门诊信息实体类
 * </p>
 * <p>
 * Company: 长沙东勤信息科技发展有限公司
 * </p>
 * 
 * @author jackson wang
 * @since 1.0
 * @version 1.0
 * @date 2017年7月25日 上午11:49:48
 */
@Entity
@Table(name = ConstSysParam.MODULE_OUTPATIENT)
public class MedicalOutpatient extends BaseDomainExcludeId implements BaseDomainInf {

	/*
	 * 主键
	 */
	@Id
	@Column
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "outpatientGenerator")
	@TableGenerator(name = "outpatientGenerator", table = "sysman_generation_key", pkColumnValue = ConstSysParam.MODULE_OUTPATIENT, pkColumnName = "primary_key", valueColumnName = "key_value", allocationSize = 1)
	private Long id;

	@Override
	public Long getId() {
		// TODO Auto-generated method stub
		return this.id;
	}

	@Override
	public void setId(Long id) {
		// TODO Auto-generated method stub
		this.id = id;
	}

	// 诊断id
	private String diagnosis_id;

	// 诊断名称
	private String diagnosis_name;

	// 医生编码
	private String doct_code;

	// 医生姓名
	private String doct_name;

	// 科室编码
	private Long doct_depart_code;

	// 科室名称
	private String doct_depart_name;

	// 计费时间
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date feeat;

	//
	private String f_dep;

	private String f_dep_cod;

	// 医院编码
	private String hospital_code;

	// 医院名称
	private String hospital_name;

	// 备注
	private String is_comment;

	// 患者出生日期
	@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
	private Date patient_birth;

	// 患者姓名
	private String patient_name;

	// 患者编码
	private String patient_no;

	// 门诊记录编码
	private String outpatient_number;

	// 患者性别
	private String patient_sex;

	// 处方号
	private String prescribe_code;

	// 首次就诊日期
	private String registat;

	private Long state;

	//门诊号码
	private String mzhm;
	
	//处方号码
	private String cfhm;
	
	//就诊序号
	private String jzxh;

	public String getDiagnosis_id() {
		return diagnosis_id;
	}

	public void setDiagnosis_id(String diagnosis_id) {
		this.diagnosis_id = diagnosis_id;
	}

	public String getDiagnosis_name() {
		return diagnosis_name;
	}

	public void setDiagnosis_name(String diagnosis_name) {
		this.diagnosis_name = diagnosis_name;
	}

	public String getDoct_code() {
		return doct_code;
	}

	public void setDoct_code(String doct_code) {
		this.doct_code = doct_code;
	}

	public String getDoct_name() {
		return doct_name;
	}

	public void setDoct_name(String doct_name) {
		this.doct_name = doct_name;
	}

	public Long getDoct_depart_code() {
		return doct_depart_code;
	}

	public void setDoct_depart_code(Long doct_depart_code) {
		this.doct_depart_code = doct_depart_code;
	}

	public String getDoct_depart_name() {
		return doct_depart_name;
	}

	public void setDoct_depart_name(String doct_depart_name) {
		this.doct_depart_name = doct_depart_name;
	}

	public Date getFeeat() {
		return feeat;
	}

	public void setFeeat(Date feeat) {
		this.feeat = feeat;
	}

	public String getF_dep() {
		return f_dep;
	}

	public void setF_dep(String f_dep) {
		this.f_dep = f_dep;
	}

	public String getF_dep_cod() {
		return f_dep_cod;
	}

	public void setF_dep_cod(String f_dep_cod) {
		this.f_dep_cod = f_dep_cod;
	}

	public String getHospital_code() {
		return hospital_code;
	}

	public void setHospital_code(String hospital_code) {
		this.hospital_code = hospital_code;
	}

	public String getHospital_name() {
		return hospital_name;
	}

	public void setHospital_name(String hospital_name) {
		this.hospital_name = hospital_name;
	}

	public String getIs_comment() {
		return is_comment;
	}

	public void setIs_comment(String is_comment) {
		this.is_comment = is_comment;
	}

	public Date getPatient_birth() {
		return patient_birth;
	}

	public void setPatient_birth(Date patient_birth) {
		this.patient_birth = patient_birth;
	}

	public String getPatient_name() {
		return patient_name;
	}

	public void setPatient_name(String patient_name) {
		this.patient_name = patient_name;
	}

	public String getPatient_no() {
		return patient_no;
	}

	public void setPatient_no(String patient_no) {
		this.patient_no = patient_no;
	}

	public String getOutpatient_number() {
		return outpatient_number;
	}

	public void setOutpatient_number(String outpatient_number) {
		this.outpatient_number = outpatient_number;
	}

	public String getPatient_sex() {
		return patient_sex;
	}

	public void setPatient_sex(String patient_sex) {
		this.patient_sex = patient_sex;
	}

	public String getPrescribe_code() {
		return prescribe_code;
	}

	public void setPrescribe_code(String prescribe_code) {
		this.prescribe_code = prescribe_code;
	}

	public String getRegistat() {
		return registat;
	}

	public void setRegistat(String registat) {
		this.registat = registat;
	}

	public Long getState() {
		return state;
	}

	public void setState(Long state) {
		this.state = state;
	}

	public String getMzhm() {
		return mzhm;
	}

	public void setMzhm(String mzhm) {
		this.mzhm = mzhm;
	}

	/**
	 * @return the cfhm
	 */
	public String getCfhm() {
		return cfhm;
	}

	/**
	 * @param cfhm the cfhm to set
	 */
	public void setCfhm(String cfhm) {
		this.cfhm = cfhm;
	}

	/**
	 * @return the jzxh
	 */
	public String getJzxh() {
		return jzxh;
	}

	/**
	 * @param jzxh the jzxh to set
	 */
	public void setJzxh(String jzxh) {
		this.jzxh = jzxh;
	}
	
	

}
